package com.woniu.form;

import com.baomidou.mybatisplus.annotation.TableName;
import com.woniu.dto.BusinessHoursDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AddSiteForm {

    @NotBlank(message = "站点名称不能为空")
    @ApiModelProperty(value = "站点名称")
    private String siteName;

    @NotBlank(message = "站点地址不能为空")
    @ApiModelProperty(value = "站点地址")
    private String siteAddress;

    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "经度")
    private Double longitude;

    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "纬度")
    private Double latitude;

    @NotNull(message = "营业时间不能为空")
    @ApiModelProperty(value = "营业时间")
    private List<BusinessHoursDto> businessHours;

    @NotBlank(message = "站点联系人电话不能为空")
    @ApiModelProperty(value = "站点联系人电话")
    private String siteUserPhone;

    @NotBlank(message = "站点联系人姓名不能为空")
    @ApiModelProperty(value = "站点联系人姓名")
    private String siteUserName;

    @NotBlank(message = "站点简介不能为空")
    @ApiModelProperty(value = "站点简介")
    private String siteDesc;

    @NotNull(message = "站点所在城市不能为空")
    @ApiModelProperty(value = "站点所在城市")
    private String city;

    @NotNull(message = "站点所在区/县不能为空")
    @ApiModelProperty(value = "站点所在区/县")
    private String district;
}
